#pragma once
#include "ResidentialBuilding.h"
class ApartmentBuilding :
	public ResidentialBuilding
{
private:
	int numberOfApartments;
public:

	ApartmentBuilding() : numberOfApartments(-1){ }

	ApartmentBuilding(string info, int numberOfApartments)
		: ResidentialBuilding(info)
	{
		this->numberOfApartments = numberOfApartments;
	}

	~ApartmentBuilding()
	{
	}

	void setNumberOfApartments(int numberOfApartments){ this->numberOfApartments = numberOfApartments; }
	int getNumberOfApartments(){ return numberOfApartments; }

	void Print()
	{
		ResidentialBuilding::Print();
		cout << ", Number of apartments: " << numberOfApartments;
	}
};

